#ifndef __HTTP_PROT_DEFS_H_
#define __HTTP_PROT_DEFS_H_


namespace httpprot
{
	inline
	bool IsUpAlpha( char c )
	{
		return (c >= 'A' && c <= 'Z');
	}

	inline
	bool IsLoAlpha( char c )
	{
		return (c >= 'a' && c <= 'z');
	}

	inline
	bool IsAlpha( char c )
	{
		return IsUpAlpha( c ) || IsLoAlpha( c );
	}

	inline
	bool IsDigit( char c )
	{
		return (c >= '0' && c <= '9');
	}

	inline
	bool IsCtl( char c )
	{
		return (c >= 0 && c <= 31) | (c == 127);
	}

	const char CR = 13;
	const char LF = 10;
	const char HT = 9;
	const char SP = ' ';
	const char CLN = ':';
	const char DQ = '"';
};

#endif